-- GENERATED SPELL FOR [Varidus the Flenser] --


function spell0_25618(pUnit, Event) --@Release Aberration,Self--
pUnit:FullCastSpellOnTarget(45805,pUnit)
pUnit:RegisterEvent('Sorts_25618', 573, 1)
end

function spell1_25618(pUnit, Event) --@Release Aberration,Self--
pUnit:FullCastSpellOnTarget(45949,pUnit)
pUnit:RegisterEvent('Sorts_25618', 592, 1)
end

function spell2_25618(pUnit, Event) --@Shadow Nova,Self--
pUnit:FullCastSpellOnTarget(32711,pUnit)
pUnit:RegisterEvent('Sorts_25618', 562, 1)
end

function spell3_25618(pUnit, Event) --@Shield of Suffering,Self--
pUnit:FullCastSpellOnTarget(45908,pUnit)
pUnit:RegisterEvent('Sorts_25618', 639, 1)
end

function spell4_25618(pUnit, Event) --@Shield of Suffering,Self--
pUnit:FullCastSpellOnTarget(50329,pUnit)
pUnit:RegisterEvent('Sorts_25618', 30295, 1)
end

function Sorts_25618(pUnit, Event)
local choix_sorts_25618 = math.random(0, 4)
if choix_sorts_25618 == 0 then
pUnit:RegisterEvent('spell0_25618', 1, 1)
end
if choix_sorts_25618 == 1 then
pUnit:RegisterEvent('spell1_25618', 1, 1)
end
if choix_sorts_25618 == 2 then
pUnit:RegisterEvent('spell2_25618', 1, 1)
end
if choix_sorts_25618 == 3 then
pUnit:RegisterEvent('spell3_25618', 1, 1)
end
if choix_sorts_25618 == 4 then
pUnit:RegisterEvent('spell4_25618', 1, 1)
end
end

function mob25618_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25618', math.random(1500, 3000), 1)
end

function mob25618_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25618_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25618_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25618, 1, 'mob25618_Action')
RegisterUnitEvent(25618, 2, 'mob25618_Leave')
RegisterUnitEvent(25618, 3, 'mob25618_Kill')
RegisterUnitEvent(25618, 4, 'mob25618_Die')
